package firstapp.web;
import cn.webwheel.*;
import cn.webwheel.utils.*;

public class PageIndex extends DefaultPage {
	public String message = "WebWheel";

	@WebParam("msg")
	public void setMessage(String msg) {
		if(msg != null) message = msg;
	}

	public String svalue = "svalue";

	public StringBuilder revert(String s) {
		if(s==null) return null;
		StringBuilder sb = new StringBuilder();
		for(int i=s.length()-1; i>=0;i--) sb.append(s.charAt(i));
		return sb;
	}

	public String getTag() {
		return "span";
	}
	
	public String getStyle() {
		return "color:blue";
	}
	
	public String getContent() {
		return "I am content";
	}
	
	public boolean tagout() {
		return false;
	}
	
	public double getRand() {
		return Math.random();
	}
	
	public String[] getArray() {
		return new String[]{"Chiang", "Kai", "shek"};
	}
	
	public Object getOuter() {
		return new CompOuter();
	}
}